<script type="text/javascript">
$(function () {
	var url = '${contextPath}script/oa/applyManager.js';
	$.ajax({url:url, dataType:'script', cache:true,
		success: function(){
		}
	});
})

</script>
<div class="widget" style="margin:0px;">
	<div class="widget-content">
		<div class="table-title">
		<form id="editApplyManagerForm">
			<input type="hidden" id="apply_code" value="${(apply.code)!''}"/>
			<table class="table table-bordered animate2 fadeInUp" style="width:100%; text-align:left;">
				<tr>
					<td class="table-left" style="width:80px;">申请机构:</td>
					<td>${(apply.ocn)!''}</td>
				</tr>
				<tr>
					<td class="table-left" style="width:80px;">申请人：</td>
					<td>${(apply.an)!''}</td>
				</tr>
				<tr>
					<td class="table-left">标题:</td>
					<td>${(apply.title)!''}</td>
				</tr>
				<tr>
					<#list apply.auditStatusList as list>
					<#if list.status == 2>
						<td class="table-left">备注</td>
						<td><textarea id="remark" name="remark">${(list.remark)!''}</textarea></td>
					<#elseif list.status == 1>
					<#else>
						<td class="table-left">备注</td>	
						<td><textarea id="remark" name="remark" placeholder="驳回的话请你填写原因"></textarea></td>
					</#if>
					</#list>
				</tr>
			</table>
			<table style="width:100%; margin-top:10px;" class="table table-bordered animate2 fadeInUp">
				<thead>
					<tr>
						<th style="text-align:center;">商品名称</th>
						<th style="text-align:center;">数量</th>
					</tr>
				</thead>
				<tbody id="applyDetailListBody">
				<#if ((apply.adList)?? && apply.adList?size > 0)>
					<#list apply.adList as item>
						<tr class="rep">
							<td style="text-align:center;">${(item.gn)!''}</td>
							<td style="text-align:center;">${(item.count)!''}</td>
						</tr>
					</#list>
				</#if>
				</tbody>
				<#if (apply.auditStatusList?? && apply.auditStatusList?size gt 0)>
					<#list apply.auditStatusList as item>
						<#if item.au??>
							<tr>
								<td colspan="2" style="text-align:center; color: red">已审核</td>
							</tr>
							<tr>
								<td colspan="2" style="text-align:center;"><a class="btn btn-info" href="javascript:;" onclick="javascript: $.fn.colorbox.close();">关闭</a></td>
							</tr>
						<#else>
							<tr>
								<td colspan="5" style="text-align:center;">
									<a class="btn btn-info" href="javascript:;" title="${(apply.title)!''}" pic="${(apply.code)!''}" onclick="javascript: updateDesignate1_applyManager($('#apply_code').val()); $.fn.colorbox.close();"><i class="fontello-icon-floppy"></i> 通过</a>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<a class="btn btn-info" href="javascript:;" onmousemove="javascript:check_applyManager();" title="${(apply.title)!''}" pic="${(apply.code)!''}" onclick="javascript: updateDesignate2_applyManager($('#apply_code').val()); $.fn.colorbox.close();"><i class="fontello-icon-floppy"></i> 驳回</a>
								</td>
							</tr>
							<#break/>
						</#if>
					</#list>
				</#if>
			</table>
			</form>
		</div>
	</div>
</div>